//
//  ViewController.m
//  10506
//
//  Created by student on 16/2/19.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)backTap:(id)sender
{
    [self.view endEditing:YES];
}


- (IBAction)counting:(id)sender
{
    int a = [self.textField1.text intValue];
    int b = [self.textField2.text intValue];
    int c = a + b;
    NSString *string = [NSString stringWithFormat:@"%i",c];
    self.label.text = string;
}


@end
